var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});


router.get('/json', function (req, res, next) {
  res.status(200).json({
    ok: true,
    body: 'here is a message'
  })
});

module.exports = router;
